// components/swiper/index.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        imgUrls: {
            type: Array
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        autoplay: true,
        circular: true
    },

    /**
     * 组件的方法列表
     */
    methods: {
        onSwiperTap (event) {
            let zbactid = event.currentTarget.dataset.zbactid
            let id = event.currentTarget.dataset.id
            let status = event.currentTarget.dataset.status
            let name = event.currentTarget.dataset.name
            let pic = event.currentTarget.dataset.pic
            let title = event.currentTarget.dataset.title
            // hasLive 1为待开始 2为进行中 3为已结束
            let valueArr = {
                id: id,
                status: status,
                name: name,
                pic: pic,
                title: title,
                zbactid: zbactid
            }
            this.triggerEvent('onSwiperTap', valueArr)
        }
    }
})